﻿using System;
using System.Data.Common;
using System.Data.SqlClient;

using SBPweb.Data.Generic;

#if SQL2005
namespace SBPweb.Data.SQL2005
{

	/// <summary>
	/// Interface to construct update commands
	/// </summary>
	/// <typeparam name="TDomainObject"></typeparam>
	public interface IUpdateFactory<TDomainObject> : IDbToBusinessEntityNameMapper
    {
		/// <summary>
		/// This method constructs an update command by the given SqlDatabase and TDomainObject
		/// </summary>
		/// <param name="db">SqlDatabase db</param>
		/// <param name="domainObject">TDomainObject domainObject</param>
		/// <returns>SqlCommand</returns>
        SqlCommand ConstructUpdateCommand(SqlDatabase db, TDomainObject domainObject);
    }
}
#endif